
<div id="menuitem-add-edit">
    <div class="title">
        添加菜单项
    </div>
            <form action="__APP__/MenuItem/insert" method="post">

                <eq name="Think.get.type" value="custom">
                        <input type="hidden" name="menuid" value="<{$Think.get.mid}>" />
                        <input type="hidden" name="componentid" value="<{$Think.get.cid}>" />
                        <input type="hidden" name="selectid" value="0" />
                    <else/>
                        <input type="hidden" name="menuid" value="<{$Think.post.mid}>" />
                        <input type="hidden" name="componentid" value="<{$Think.post.cid}>" />
                        <input type="hidden" name="selectid" value="<{$Think.post.sid}>" />
                </eq>

            <table>
                <tr><th>菜单项名称：</th><td><input type="text" name="name" value="<{$Think.post.getname}>" /></td></tr>
                <tr><th>别　　　名：</th><td><input type="text" name="alias" /></td></tr>
                <tr><th>排　　　序：</th><td><input type="text" name="sort" value="0" /></td></tr>
                <tr><th>发　　　布：</th><td><input type="radio" checked="checked" name="publish" value="1" />是
                    <input type="radio" name="publish" value="0" />否</td></tr>
                <tr><th>类　　　型：</th><td><input type="text" name="type" style="border:none;" readonly="readonly" value="<{$data.model}>" /></td></tr>
                <tr><th>地　　　址：</th><td>
                    <empty name="Think.post.sid">
                            <input type="text" name="link" />
                        <else/>
                            <input type="text" name="link" style="border:none;" readonly="readonly" value="index.php/<{$data.model}>/<{$data.action}>/id/<{$Think.post.sid}>" />
                    </empty>
                </td></tr>
                <tr><th style="vertical-align: top;">打开　方式：</th><td>
                    <select name="howopen" style="margin:0 0 5px 5px;">
                        <option value="0">本页面打开</option>
                        <option value="1">新页面打开</option>
                    </select>
                </td></tr>
                <tr><th style="vertical-align:top;">路　　　径：</th><td>
                      <select name="pid" size="18" style="margin-left:5px;width:300px;">
                          <option value="0" selected="selected">根菜单项</option>
                          <volist name="datas" id="vo">
                                  <option value="<{$vo.id}>" title="<{$vo.path}>"><{$vo.nbsp}>|-- <{$vo.name}></option>
                          </volist>
                      </select>
                </td></tr>
                <tr><td></td><td><input type="submit" class="submit" value="添加菜单项" /></td></tr>
            </table>
        </form>
</div>
<script type="text/javascript" src="../Public/js/menu.js"></script>
